<template>
  <div>
      <el-row type="flex" align="middle" style="padding-top: 10px" justify="center">
        <el-col :span="2" style="text-align: center                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ">
          <h3>输出分拣</h3>
        </el-col>
        <el-col :span="20">
          <ProductionSteps :active="2" align-center/>
        </el-col>
        <el-col :span="2"><el-button @click="empty" icon="el-icon-delete" type="primary">清空格子</el-button></el-col>
      </el-row>
    <div class="message">
      <p class="character">
        扫描大板照片上的条码，系统会按照相同产品进行分拣汇总。待产品的照片数齐套后，储位格子会提示数量已满进行放行。
        <span class="skip">查看帮助文档</span>
      </p>
    </div>

    <div class="main">
      <div class="left">
        <div class="scanning">
          <h4>扫描操作区</h4>
          <div class="center">
            <el-radio-group class="anniu" v-model="radio">
              <el-radio label="0">连续扫描</el-radio>
              <el-radio label="1">首尾扫描</el-radio>
            </el-radio-group>

            <template v-if="radio=='0'">
              <div class="saomiao">
                <span>请连续扫描条码：</span>
                <el-input
                  @keydown.native.enter="getProduct1"
                  clearable
                  placeholder="请扫描SN条码"
                  v-model="saomiao"
                ></el-input>
              </div>
            </template>
            <template v-else>
              <div class="saomiao">
                <span>请首尾扫描条码：</span>
                <el-input
                  @keydown.native.enter="getProduct2"
                  clearable
                  placeholder="请扫描SN条码"
                  v-model="saomiao"
                ></el-input>
              </div>
            </template>

            <div class="next">
              <span>下一道工序：</span>
              <el-button class="fahuo" type="primary" @click="switchTo('factoryPresetScan')">
                <span>工厂前台扫描</span>
              </el-button>
            </div>
            <div class="sort">
              <h5>分拣储位：</h5>
              <span>{{gridPhoto.BoardGridId}}</span>
            </div>
          </div>
        </div>
        <div class="inputcontent">
          <el-input class="inSearch" placeholder="请输入内容" v-model="search"></el-input>
          <div class="iconSearch"></div>
          <el-select @change="getStation" placeholder="请选择线体" v-model="lineId">
            <el-option
              :key="index"
              :label="item.LineId + '  ' + item.Name"
              :value="item.LineId"
              v-for="(item,index) in lineData"
            ></el-option>
          </el-select>
        </div>
        <div class="stationMes">
          <h4>工位信息展示</h4>
          <ul>
            <li>
              <h5>工位名称：</h5>
              <span>{{workStationData.Name}}</span>
            </li>
            <li>
              <h5>工位线体：</h5>
              <span>{{workStationData.LineName}}</span>
            </li>
            <li>
              <h5>所属车间：</h5>
              <span>{{workStationData.WorkShopName}}</span>
            </li>
            <li>
              <h5>操作员：</h5>
              <span>{{workStationData.LastModifyBy}}</span>
            </li>
          </ul>
        </div>
        <div class="grid">
          <ul>
            <li :key="index" v-for="(item,index) in gridData">
              <div
                @click="Eject(index)"
                @mouseenter="enter(index)&&index==current-1"
                @mouseleave="leave(index)"
                class="gezi"
                style="backgroundColor:#F1022F;color:#fff"
                v-if="item.FullStatus==2"
              >
                <span class="gridname">{{item.GridName}}</span>
                <span class="code">产品编码：{{ item.OrderProductCode }}</span>
                <span class="code">客户名称：{{ item.CtmName }}</span>
                <span class="code">照片数：{{ item.SnCount }}</span>
              </div>
              <div
                @mouseenter="enter1(index)&&index==current-1"
                @mouseleave="leave(index)"
                class="gezi"
                style="backgroundColor:#0095FF;color:#fff"
                v-else-if="item.FullStatus==1"
              >
                <span class="gridname">{{item.GridName}}</span>
                <div>
                  <span class="code">产品编码：{{ item.OrderProductCode }}</span>
                  <span class="code">客户名称：{{ item.CtmName }}</span>
                  <span class="code">照片数：{{ item.SnCount }}</span>
                </div>
              </div>
              <div class="gezi" style="backgroundColor:#fff;" v-else>
                <!-- <span class="gridname">{{item.BoardGridId}}号</span> -->
                <span class="gridname">{{index+1}}号</span>
              </div>
              <!-- 连接层 -->
              <div
                @mouseenter="seen=true&&index==current-1"
                @mouseleave="seen=false"
                style="width:20px;height:150px;backgroundColor:transparent;position:absolute;left:180px;top:0;z-index:999;">
              </div>

              <div @mouseenter="seen=true&&index==current-1" @mouseleave="leave(index)" class="popover"
                   v-show="seen&&index==current-1">
                <h5>
                  订单编码：
                  <span>{{gridDetailData.NetOrderProductId}}</span>
                </h5>
                <div class="proMes">
                  <div class="name">
                    <div>产品名称</div>
                    <span>{{gridDetailData.Name}}</span>
                  </div>
                  <div class="phoCode">
                    <div>照片编码</div>
                    <ul>
                      <li :key="index" v-for="(list,index) in gridsData1">
                        <span>{{list.OrderFile.OrderFileCode}}</span>
                      </li>
                    </ul>
                  </div>
                </div>
                <div class="tiaoxingma">
                  <barcode :options="barcode_option" :value="barcodeValue"></barcode>
                </div>
              </div>

              <div class="popover" ref="popover2" v-show="seen1&&index==current-1">
                <h5>
                  订单编码：
                  <span>{{gridDetailData.NetOrderProductId}}</span>
                </h5>
                <div class="proMes">
                  <div class="name">
                    <div>产品名称</div>
                    <span>{{gridDetailData.Name}}</span>
                  </div>
                  <div class="phoCode">
                    <div>照片编码</div>
                    <ul>
                      <li :key="index" v-for="(list,index) in gridsData1">
                        <span>{{list.OrderFile.OrderFileCode}}</span>
                      </li>
                    </ul>
                  </div>
                </div>
                <div class="tiaoxingma">
                  <barcode :options="barcode_option" :value="barcodeValue"></barcode>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div class="right">
        <h4>可以过站的产品</h4>
        <div>
          <Table :gridsData="gridsData"></Table>
        </div>
      </div>
    </div>
    <!-- 打印内容部分  不会显示在模版上 -->
    <div v-show="false">
      <form ref="form1">
        <table
          border="1"
          style="border:solid 1px black;border-collapse:collapse;font-size:12px;text-align:center"
          width="180"
        >
          <tr>
            <td style="font-weight:800;width:60px">产品名称</td>
            <td>{{gridsProductData.OrderProductName}}</td>
          </tr>
          <tr>
            <td style="font-weight:800">产品编码</td>
            <td>{{gridsProductData.OrderProductCode}}</td>
          </tr>
          <tr>
            <td style="font-weight:800;word-wrap: break-word;word-break: break-all ;">客户名称</td>
            <td>{{gridsProductData.CtmName}}</td>
          </tr>
          <tr>
            <td style="font-weight:800;word-wrap: break-word;word-break: break-all ;">照 片 数</td>
            <td>{{gridsProductData.SnCount}}</td>
          </tr>
          <tr>
            <td style="font-weight:800;word-wrap: break-word;word-break: break-all ;">格 子 号</td>
            <td>{{gridsProductData.BoardGridId}}</td>
          </tr>
        </table>
      </form>
    </div>
    <!-- 产品详情弹出框 -->
    <el-dialog
      :close-on-click-modal="false"
      :visible.sync="dialogVisible"
      center
      title="产品详情"
      width="650px"
    >
      <div class="product">
        <div>
          <div class="biaoge">
            <table class="biaotou">
              <tr>
                <td>产品名称</td>
              </tr>
              <tr>
                <td>产品编码</td>
              </tr>
              <tr>
                <td>客户名称</td>
              </tr>
              <tr>
                <td>照 片 数</td>
              </tr>
              <tr>
                <td>格 子 号</td>
              </tr>
            </table>

            <table class="neirong">
              <tr>
                <td>{{gridsProductData.OrderProductName}}</td>
              </tr>
              <tr>
                <td>{{gridsProductData.OrderProductCode}}</td>
              </tr>
              <tr>
                <td>{{gridsProductData.CtmName}}</td>
              </tr>
              <tr>
                <td>{{gridsProductData.SnCount}}</td>
              </tr>
              <tr>
                <td>{{gridsProductData.BoardGridId}}</td>
              </tr>
            </table>
          </div>
          <!-- 生成条形码 -->
          <div class="tiaoxingma">
            <barcode :options="barcode_option" :value="barcodeValue"></barcode>
          </div>
        </div>
      </div>
      <div style="marginTop:20px;marginBottom:20px">
        <el-button :disabled="printDisabled" @click="printPdf" class="anniu1" style="marginTop:20px" type="primary">
          <span class="dayin">打 印</span>
        </el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
  import { getLodop } from './assets/LodopFuncs'
  import {
    getBoardGridList, //输出分拣-格子列表
    getBoardGridDetailByGridId, //获取格子详情
    getOrderProductOfFullBoard, // 获取可以过站的产品
    scanGridPhoto, // 扫描照片
    cleanPhotoGrid, // 清空格子
    getBoardGridDOfPrintInfoByGridId   //打印详细信息
  } from '@/api/output'
  import {
    getWorkStationInfo //获取工位信息
  } from '@/api/scan'
  import { getUserLineList } from '@/api/linebody'
  import Table from './components/outputTable'
  import VueBarcode from 'vue-barcode'
  import ProductionSteps from './aComponents/ProductionSteps'

  export default {
    components: {
      Table,
      barcode: VueBarcode, ProductionSteps
    },
    data() {
      return {
        value: '',
        checked: '',
        options: [],
        lineId: '',
        lineData: [],
        visible: true,
        barcode_option: {
          displayValue: true,
          background: '#fff',
          fontSize: '20px'
        },
        seen: false,
        seen1: false,
        seen2: false,
        barcodeValue: 0,
        barcodeValue1: 0,
        // tableData2:[],
        gridData: [],
        gridsData: [],

        gridssData: [], // 格子打印详情
        gridsProductData: {}, //点击红色格子的显示的第一条数据的产品详情
        OrderProductData: {}, //格子列表里的产品详情数据
        griProData: [],
        gridPhoto: [],
        gridDetail: [],
        gridsDetail: [], //鼠标点击的默认第一条数据
        gridDetailData: [],
        gridsData1: [],
        printer: '',
        workStationData: [],
        dialogVisible: false,
        printDisabled: true,
        codeArr: [],
        radio: '1',
        saomiao: '',
        search: '',
        current: 0
      }
    },
    methods: {
      printPdf() {
        this.CreateOneFormPage()
        LODOP.PRINT()
        // LODOP.PREVIEW();
      },
      CreateOneFormPage() {
        const LODOP = getLodop()
        LODOP.PRINT_INIT('订货单')
        LODOP.SET_PRINT_STYLE('FontSize', 12)
        LODOP.SET_PRINT_STYLE('Bold', 1)
        LODOP.SET_PRINT_PAGESIZE(1, '60mm', '90mm')

        LODOP.ADD_PRINT_TEXT(10, 20, 200, 20, '产品详情')
        LODOP.ADD_PRINT_HTM(100, 0, 50, 400, this.$refs.form1.innerHTML)
        LODOP.ADD_PRINT_BARCODE(35, 5, 180, 50, '128Auto', this.gridsProductData.OrderProductCode)

        LODOP.SET_PRINTER_INDEX(this.printer)
      },
      // 鼠标进入
      enter(index) {
        this.current = index + 1
        this.seen = true
        this.seen2 = true
        this.gridsData1 = []
        getBoardGridDetailByGridId({ gridId: this.current }).then(res => {
          if (parseInt(res.Code) === 1) {
            this.gridsData1 = res.Result
            res.Result.forEach(el => {
              this.gridDetailData = el.OrderProduct
              this.barcodeValue = el.OrderProduct.OrderProductCode
              // console.log(this.barcodeValue)
            })
          }
        })
      },
      switchTo(name){
        this.$router.push(name)
      },
      // 鼠标进入
      enter1(index) {
        this.current = index + 1
        this.seen1 = true
        this.seen2 = true
        this.gridsData1 = []
        getBoardGridDetailByGridId({ gridId: this.current }).then(res => {
          if (parseInt(res.Code) === 1) {
            this.gridsData1 = res.Result
            res.Result.forEach(el => {
              this.gridDetailData = el.OrderProduct
              this.barcodeValue = el.OrderProduct.OrderProductCode
              // console.log(this.barcodeValue)
            })
          }
        })
      },

      leave() {
        this.seen = false
        this.seen1 = false
        this.seen2 = false
      },
      init() {
        // 获取格子列表
        getBoardGridList({ keyName: this.search, status: -1 }).then(res => {
          if (parseInt(res.Code) === 1) {
            this.gridData = res.Result
            res.Result.forEach(el => {
              if (el.BoardGridDetails == null) {

              } else {
                el.BoardGridDetails.forEach(ele => {
                  this.OrderProductData = ele.OrderProduct
                })
              }
            })
          }
        })
        // 获取可以过站的产品列表
        getOrderProductOfFullBoard().then(res => {
          if (parseInt(res.Code) === 1) {
            this.gridsData = res.Result
          }
        })
      },

      //连续扫描
      getProduct1() {
        if (this.lineId == '') {
          this.$message('请选择线体')
          this.saomiao = ''

        } else {
          if (!this.saomiao) {
            this.$message('条码不能为空')
          } else {
            scanGridPhoto({
              scanFlag: 0,
              orderFileStart: this.saomiao,
              orderFileEnd: this.saomiao
            })
              .then(res => {
                if (parseInt(res.Code) === 1) {
                  this.gridPhoto = res.Result
                  this.$message({
                    type: 'success',
                    message: res.Message
                  })
                }
                this.saomiao = ''
                this.init()
                if (res.Result.FullStatus === 2) {
                  // this.gridsProductData=this.gridssData[res.Result.BoardGridId-1].OrderProduct
                  getBoardGridDOfPrintInfoByGridId({ gridId: res.Result.BoardGridId }).then((res) => {
                    this.gridsProductData = res.Result
                    this.$nextTick(() => {
                      this.printPdf()
                    })
                  })
                }
              })
              .catch(res => {
                this.saomiao = ''
              })
          }
        }
      },
      //首尾扫描
      getProduct2() {
        if (this.lineId == '') {
          this.$message('请选择线体')
          this.saomiao = ''

        } else {
          if (!this.saomiao) {
            this.$message('条码不能为空')
          } else {
            this.codeArr.push(this.saomiao)
            if (this.codeArr.length < 2) {
              this.$message('请扫描最后一个条码')
              this.saomiao = ''
            } else if (this.codeArr.length === 2) {
              scanGridPhoto({
                scanFlag: 1,
                orderFileStart: this.codeArr[0],
                orderFileEnd: this.codeArr[1]
              }).then(res => {
                if (parseInt(res.Code) === 1) {
                  this.gridPhoto = res.Result
                  this.init()
                  this.$message({ type: 'success', message: res.Message })
                }
                // this.saomiao = ''
                if (res.Result.FullStatus === 2) {
                  // this.gridsProductData=this.gridssData[res.Result.BoardGridId-1].OrderProduct
                  getBoardGridDOfPrintInfoByGridId({ gridId: res.Result.BoardGridId }).then((res) => {
                    this.gridsProductData = res.Result
                    this.$nextTick(() => {
                      this.printPdf()
                    })
                  })
                }
              }).catch(e => {
                console.log(e)
                this.$message.error(e)
              }).finally(() => {
                this.codeArr = []
                this.saomiao = ''
              })
            }
            // else {
            //     this.codeArr = []
            //     return
            //   }
          }
        }
      },
      // 打印
      print() {
        // if(!this.value){

        // }
        // var newstr = document.getElementsByClassName('product')[0].innerHTML
        // document.body.innerHTML = newstr
        // window.print()
        // // 重新加载页面，以刷新数据
        // window.location.reload()

        this._print()
      },

      _print() {
        const routeData = this.$router.resolve({
          name: 'print2DCodePage',
          query: {
            barcodeValue: this.barcodeValue,

            gridsProDataName: this.gridsProductData.Name,
            orderProductCode: this.gridsProductData.OrderProductCode,
            ctmName: this.gridsProductData.CtmName,
            gridsData1Length: this.gridsData1.length,
            boardGridId: this.gridsDetail.BoardGridId,
            printer: this.printer
          }
        })
        console.log(routeData.href)
        window.open(routeData.href, '_blank')
      },

      //点击红色格子弹出产品详情
      Eject(index) {
        this.current = index + 1
        // this.dialogVisible = true;
        this.gridsProductData = []
        getBoardGridDOfPrintInfoByGridId({ gridId: this.current }).then(res => {
          if (parseInt(res.Code) === 1) {
            this.dialogVisible = true
            this.printDisabled = false
            this.gridsProductData = res.Result
            this.gridssData = res.Result
            this.barcodeValue = this.gridssData.OrderProductCode
          }
        })
      },
      //清空格子
      empty() {
        cleanPhotoGrid().then(res => {
          if (parseInt(res.Code) === 1) {
            this.$message({
              type: 'success',
              message: '成功'
            })
          }
          this.init()
        })
      },
      getLine() {
        getUserLineList({ keyName: '', lineType: -1 }).then(res => {
          if (parseInt(res.Code) === 1) {
            this.lineData = res.Result
          }
        })
      },

      getStation() {
        //获取本机电脑IP地址
        var RTCPeerConnection =
          window.RTCPeerConnection ||
          window.webkitRTCPeerConnection ||
          window.mozRTCPeerConnection
        if (RTCPeerConnection) {
          (() => {
            var rtc = new RTCPeerConnection()
            rtc.createDataChannel('') //创建一个可以发送任意数据的数据通道
            rtc.createOffer(
              offerDesc => {
                //创建并存储一条sdp数据
                rtc.setLocalDescription(offerDesc)
              },
              e => {
              }
            )
            rtc.onicecandidate = evt => {
              //监听candidate事件
              // console.log(evt)
              if (evt.candidate && evt.candidate.foundation == 25531464) {
                var ip_addr = evt.candidate.address
                // console.log(this.ip_addr)
                localStorage.setItem('ip_addr', ip_addr)
              }
            }
          })()
        }
        var ipaddress = localStorage.getItem('ip_addr')
        console.log(ipaddress)
        //通过电脑IP地址获取当前工位信息
        getWorkStationInfo({
          ipAddress: ipaddress,
          techType: 6,
          lineId: parseInt(this.lineId)
        })
          .then(res => {
            if (parseInt(res.Code) === 1) {
              this.workStationData = res.Result
              this.printer = res.Result.PrinterName
            }
          })
          .catch(res => {
          })
      }
      //根据不同状态值显示不同颜色
      // addclassStatus(i) {
      //   switch (i) {
      //     case 0:
      //       return "statusTypeSkinA"; //空闲    白色
      //     case 1:
      //       return "statusTypeSkinB"; //使用中  蓝色
      //     case 2:
      //       return "statusTypeSkinC"; //满载    红色
      //   }
      // },
    },
    created() {
      this.init()
      this.getLine()
    }
  }
</script>
<style lang="scss" scoped>
  // body{
  //   height: 100%;
  //   overflow: auto;
  // }
  .topBtn {
    height: 60px;
    width: 98%;
    margin: 0 auto;
    line-height: 28px;
    display: flex;
    justify-content: space-between;

    .sizeBig {
      font-size: 16px;
      line-height: 60px;
      margin-left: 10px;
    }

    .liucheng {
      width: 500px;
      line-height: 20px;
      // height: 30px;
      margin-top: 5px;
    }

    .btn {
      line-height: 60px;
    }
  }

  .message {
    width: 98%;
    margin: 0 auto;
    height: 70px;
    line-height: 20px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(238, 238, 238, 1);
    font-size: 14px;

    .character {
      margin: 20px 0 21px 20px;
      color: #999999;

      .skip {
        color: #0095ff;
        margin-left: 10px;
        cursor: pointer;
      }
    }
  }

  .main {
    width: 98%;
    margin: 0 auto;
    margin-top: 20px;

    .left {
      float: left;
      width: 68%;

      .scanning {
        width: 100%;
        height: 104px;
        border: 1px solid #eee;

        h4 {
          font-size: 14px;
          font-weight: 600;
          padding: 17px 0 0 22px;
          height: 50px;
        }

        .center {
          width: 100%;
          // margin-left: 1.8%;
          .anniu {
            float: left;
            width: 6%;
            margin-left: 1.8%;

            .el-radio {
              margin-bottom: 5px;
            }
          }

          .saomiao {
            float: left;
            width: 40%;
            height: 40px;
            line-height: 40px;
            margin-left: 7%;

            span {
              width: 115px;
              font-size: 14px;
              float: left;
            }

            .el-input {
              float: left;
              width: 60%;
            }
          }

          .next {
            float: left;
            width: 24%;
            margin-left: 4%;
            height: 40px;
            line-height: 40px;

            span {
              width: 51%;
              font-size: 14px;
              font-weight: 400;
            }

            .el-button {
              width: 49%;

              span {
                margin-left: -5px;
              }
            }
          }

          .sort {
            float: right;
            width: 13%;
            margin-right: 1.8%;
            height: 40px;
            line-height: 40px;
            // border: 1px solid #eee;
            h5 {
              width: 73%;
              float: left;
              font-size: 14px;
              font-weight: 400;
            }

            span {
              width: 27%;
              color: #f1022f;
              font-size: 20px;
              font-weight: 600;
            }
          }
        }
      }

      .inputcontent {
        width: 100%;
        margin: 0 auto;
        height: 80px;
        position: relative;
        padding-top: 21px;
        box-sizing: border-box;

        .iconSearch {
          position: absolute;
          left: 277px;
          top: 30px;
          width: 20px;
          height: 20px;
          background-image: url("./image/搜索.png");
          background-repeat: no-repeat;
          cursor: pointer;
        }

        .inSearch {
          width: 308px;
          height: 40px;
        }
      }

      .stationMes {
        width: 100%;
        height: 90px;
        border: 1px solid #eee;

        h4 {
          font-size: 14px;
          margin: 17px 0 0 20px;
        }

        ul {
          margin-left: 20px;

          li {
            float: left;
            width: 23%;
            margin-top: 20px;
            margin-left: 10px;

            h5 {
              float: left;
              font-size: 14px;
              font-weight: 400;
            }

            span {
              float: left;
              font-size: 14px;
              font-weight: 400;
            }
          }
        }
      }

      .grid {
        width: 100%;
        margin-top: 20px;

        li {
          float: left;
          width: 190px;
          height: 150px;
          margin: 0 0 -1px -1px;
          position: relative;
          border: 1px solid #eee;
          z-index: 0;

          .gezi {
            width: 100%;
            height: 100%;
            // .div {

            //   width: 100%;
            //   height: 100%;

            .gridname {
              display: inline-block;
              width: 100%;
              text-align: center;
              line-height: 50px;
            }

            .code {
              display: block;
              font-size: 12px;
              width: 100%;
              height: 30px;
              // text-align: center;
              margin-left: 5px;
            }

            // }
          }

          .popover {
            position: absolute;
            width: 330px;
            height: 400px;
            top: -100px;
            left: 200px;
            border: 1px solid #ccc;
            border-radius: 1%;
            background-color: #fff;
            overflow: auto;
            z-index: 999;

            h5 {
              margin: 20px 0 10px 50px;
            }

            .proMes {
              width: 98%;
              padding-bottom: 20px;
              margin-left: 5px;
              // overflow-x:hidden;
              .name {
                width: 100%;

                div {
                  width: 70%;
                  // margin: 0 auto;
                  margin-left: 50px;
                  text-align: center;
                  font-weight: 600;
                  border: 1px solid #ccc;
                  height: 20px;
                  line-height: 20px;
                }

                span {
                  display: inline-block;
                  margin-left: 50px;
                  width: 70%;
                  text-align: center;
                  border: 1px solid #ccc;
                  border-top: none;
                  height: 20px;
                  line-height: 20px;
                }
              }

              .phoCode {
                width: 100%;
                padding-bottom: 20px;

                div {
                  width: 70%;
                  height: 20px;
                  line-height: 20px;
                  // margin: 0 auto;
                  margin-left: 50px;
                  font-weight: 600;
                  text-align: center;
                  border: 1px solid #ccc;
                  border-top: none;
                }

                li {
                  width: 70%;
                  height: 20px;
                  line-height: 20px;
                  margin: 0 auto;
                  margin-left: 50px;
                  text-align: center;
                  border: 1px solid #ccc;
                  border-top: none;
                }
              }

              // li{
              //   width: 50%;
              //   height: 63px;
              //   div{
              //     height: 30px;
              //     line-height: 30px;
              //     border: 1px solid #ccc;
              //     text-align: center;
              //   }
              //   span{
              //     display: inline-block;
              //     width: 100%;
              //     height: 30px;
              //     line-height: 30px;
              //     border: 1px solid #ccc;
              //     text-align: center;
              //   }
              // }
            }

            .tiaoxingma {
              width: 80%;
              margin-left: 35px;
              margin-top: 30px;
            }
          }
        }

        li:hover {
          z-index: 5;

        }
      }
    }

    .right {
      float: right;
      width: 31%;
      height: 809px;
      border: 1px solid #eee;

      h4 {
        font-size: 14px;
        font-weight: 600;
        padding: 17px 0 0 22px;
        height: 50px;
      }

      div {
        width: 92%;
        margin: 0 auto;
        border: 1px solid #eee;
        border-bottom: none;
      }
    }
  }

  .product {
    width: 100%;
    margin: 0 auto;

    .proDetail {
      width: 250px;
      height: 130px;
      margin: 0 auto;

      li {
        height: 30px;
        line-height: 30px;
        // border: 1px solid #ccc;
        h5 {
          float: left;
          font-size: 16px;
          // border: 1px solid #ccc;
        }

        span {
          // display: inline-block;
          float: left;
          font-size: 16px;
          width: 170px;
          height: 30px;
          text-align: center;
          border: 1px solid #ccc;
          box-sizing: border-box;
        }
      }
    }

    .biaoge {
      width: 301px;
      height: 200px;
      margin: 0 auto;

      .biaotou {
        float: left;
        // height: 200px;
        width: 100px;

        td {
          border: 2px solid #ccc;
          text-align: center;
          font-size: 16px;
          font-weight: 600;
          height: 40px;
        }

        // border: 1px solid #ccc;
      }

      .neirong {
        float: left;
        // height: 200px;
        width: 200px;

        td {
          text-align: center;
          border: 2px solid #ccc;
          border-left: none;
          height: 40px;
          font-size: 16px;
          //  font-weight: 600;
        }
      }
    }

    .tiaoxingma {
      width: 80%;
      margin: 0 auto;
      margin-left: 170px;
      margin-top: 20px;
    }
  }

  .anniu1 {
    width: 150px;
    margin-left: 240px;
    margin-top: 10px;
    // .dayin{
    // margin-left: 10px;
    // }
  }

  .statusTypeSkinA {
    background-color: #fff;
  }

  .statusTypeSkinB {
    background-color: #0095ff;
    color: #fff;
  }

  .statusTypeSkinC {
    background-color: #f1022f;
    color: #fff;
  }
</style>
